package com.vehicle.repair.model;

import jakarta.persistence.*;
import lombok.Data;

@Entity
@Table(name = "Repairer")
@Data
public class Repairer {
    @Id
    private Integer repairerId;
    
    @OneToOne
    @MapsId
    @JoinColumn(name = "repairer_id")
    private User user;
    
    @Enumerated(EnumType.STRING)
    @Column(nullable = false)
    private SkillType skillType;
    
    @Column(nullable = false)
    private Double hourlyRate;
    
    public enum SkillType {
        漆工, 焊工, 机修
    }
}
